﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;

namespace AntiObesity.DatabaseAccess
{
    public interface IDB
    {
        SqlConnection GetConnection();
        SqlDataReader ExecuteForReader(SqlConnection connection, string sql);
        void Execute(SqlConnection connection, string sql);
        int ExecuteForInt(SqlConnection connection, string sql);
        float ExecuteForFloat(SqlConnection conn, string sql);
        DateTime ExecuteForDate(SqlConnection conn, string sql);
    }
}
